all: implement RFC8910 captive portal (CP) option
authorPaul Donald <[email protected]>
Sun, 16 Nov 2025 12:47:34 +0000 (13:47 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 18 Nov 2025 10:52:40 +0000 (11:52 +0100)
commitd1500bb5d64d60e3fa4ec7ddb60501162002db3e
tree0d777db756825b0d3dc7e360ea56d841409cc726
parentd236b2e0c53e0a3bd7e5229892103544ecfade5f
all: implement RFC8910 captive portal (CP) option

https://www.rfc-editor.org/rfc/rfc8910.html

RFC8910 defines a captive portal API URI for a CP client to consume.

With captive_portal_uri set to 'https://test.example.com'

Produces in RA:

ICMPv6 Option (DHCP Captive-Portal)
    Type: DHCP Captive-Portal (37)
    Length: 4 (32 bytes)
    Captive Portal: https://test.example.com

And in DHCPv6 Reply:

Captive Portal
    Option: Captive Portal (103)
    Length: 24
    Captive Portal: https://test.example.com

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/315
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
README.md
src/config.c
src/dhcpv6.c
src/dhcpv6.h
src/odhcpd.h
src/router.c